# FROM registry.cn-hangzhou.aliyuncs.com/mememe/wyx:Tensorflow-v1.1.8
FROM docker.io/cyrildiagne/u2net-http
COPY u2net.py /app/u2net.py
CMD exec gunicorn --bind :$PORT --workers 16 main:app --timeout 300
# COPY sources.list /etc/apt/sources.list
# RUN apt-get update && apt-get  install -y  python3.6-dev python3-pip 
# RUN pip3 install torch torchvision backgroundremover
# RUN cp -a /usr/bin/python3.6 /usr/bin/python
# # RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6
# # RUN python --version
# # RUN pip --version
# ENTRYPOINT ["tail","-f","/dev/null"]